package com.ydlclass.delegrete;

import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;


public class MyTaskListener implements TaskListener {
    @Override
    public void notify(DelegateTask delegateTask) {
        if (delegateTask.getName().equals("请假申请") && delegateTask.getEventName().equals("create")) {
            delegateTask.setAssignee("xiaoming");
        }
    }
}
